package mg.Gamble.ShellGame;

import com.jme.scene.Text;
import com.jmex.game.state.BasicGameState;

public class ShellGameState extends BasicGameState {
	
	private Text scoreText;
	private boolean gameStart = true;
	private boolean placedBet = false;
	
	public ShellGameState() {
		super("Shell Game");
	}

	private void initScoreGUI() {
		scoreText = Text.createDefaultTextLabel("playerScoreText",
		"Coin profit : ");
		
	}

	private void initGambleGUI() {
		// Displays the three gamble options IE : 5 coins, 10 coins, 1000000 billion trillion monkeys.
		
	}

	private void initClams() {
		// TODO Auto-generated method stub
		
	}

	private void setupControls() {
		//if gameStart is true
			// Init controls for selecting 1, 2, or third gamble option
			// Init gamble GUI
			// handle bet
		// if game start is false 
			// remove gamble controls
			// attach new select clam controls
		
	}
	
	public void update(float tpf) {
		rootNode.updateGeometricState(tpf, true);
		updateGUI();
		updateClams();
		updateControls();
		updateGameStatus();
	}

	private void updateGameStatus() {
		if (gameStart == true){
			//setup gamble controls
		}
		else if (gameStart == false){
			//shuffle clams
			//make selection
		}
		
	}

	private void updateControls() {
		//This method is for updating the control handler.
	}

	private void updateClams() {
		// move clams
		// stop moving clams
		// let player enter their choice
		
	}

	private void updateGUI() {
		// ran every update to show the current profit.
	}

	
}
